/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Medical Genetics Provider Codes</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * specDomain: S20149 (C-0-T19465-S20096-S20149-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getMedicalGeneticsProviderCodes()
 * @model extendedMetaData="name='MedicalGeneticsProviderCodes'"
 * @generated
 */
public enum MedicalGeneticsProviderCodes implements Enumerator {
	/**
	 * The '<em><b>207S00000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_207S00000X_VALUE
	 * @generated
	 * @ordered
	 */
	_207S00000X(0, "_207S00000X", "207S00000X"),

	/**
	 * The '<em><b>207SG0202X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_207SG0202X_VALUE
	 * @generated
	 * @ordered
	 */
	_207SG0202X(1, "_207SG0202X", "207SG0202X"),

	/**
	 * The '<em><b>207SC0300X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_207SC0300X_VALUE
	 * @generated
	 * @ordered
	 */
	_207SC0300X(2, "_207SC0300X", "207SC0300X"),

	/**
	 * The '<em><b>207SG0201X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_207SG0201X_VALUE
	 * @generated
	 * @ordered
	 */
	_207SG0201X(3, "_207SG0201X", "207SG0201X"),

	/**
	 * The '<em><b>207SG0203X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_207SG0203X_VALUE
	 * @generated
	 * @ordered
	 */
	_207SG0203X(4, "_207SG0203X", "207SG0203X"),

	/**
	 * The '<em><b>207SM0001X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_207SM0001X_VALUE
	 * @generated
	 * @ordered
	 */
	_207SM0001X(5, "_207SM0001X", "207SM0001X"),

	/**
	 * The '<em><b>207SG0205X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_207SG0205X_VALUE
	 * @generated
	 * @ordered
	 */
	_207SG0205X(6, "_207SG0205X", "207SG0205X");

	/**
	 * The '<em><b>207S00000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>207S00000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_207S00000X
	 * @model literal="207S00000X"
	 * @generated
	 * @ordered
	 */
	public static final int _207S00000X_VALUE = 0;

	/**
	 * The '<em><b>207SG0202X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>207SG0202X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_207SG0202X
	 * @model literal="207SG0202X"
	 * @generated
	 * @ordered
	 */
	public static final int _207SG0202X_VALUE = 1;

	/**
	 * The '<em><b>207SC0300X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>207SC0300X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_207SC0300X
	 * @model literal="207SC0300X"
	 * @generated
	 * @ordered
	 */
	public static final int _207SC0300X_VALUE = 2;

	/**
	 * The '<em><b>207SG0201X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>207SG0201X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_207SG0201X
	 * @model literal="207SG0201X"
	 * @generated
	 * @ordered
	 */
	public static final int _207SG0201X_VALUE = 3;

	/**
	 * The '<em><b>207SG0203X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>207SG0203X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_207SG0203X
	 * @model literal="207SG0203X"
	 * @generated
	 * @ordered
	 */
	public static final int _207SG0203X_VALUE = 4;

	/**
	 * The '<em><b>207SM0001X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>207SM0001X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_207SM0001X
	 * @model literal="207SM0001X"
	 * @generated
	 * @ordered
	 */
	public static final int _207SM0001X_VALUE = 5;

	/**
	 * The '<em><b>207SG0205X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>207SG0205X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_207SG0205X
	 * @model literal="207SG0205X"
	 * @generated
	 * @ordered
	 */
	public static final int _207SG0205X_VALUE = 6;

	/**
	 * An array of all the '<em><b>Medical Genetics Provider Codes</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final MedicalGeneticsProviderCodes[] VALUES_ARRAY =
		new MedicalGeneticsProviderCodes[] {
			_207S00000X,
			_207SG0202X,
			_207SC0300X,
			_207SG0201X,
			_207SG0203X,
			_207SM0001X,
			_207SG0205X,
		};

	/**
	 * A public read-only list of all the '<em><b>Medical Genetics Provider Codes</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<MedicalGeneticsProviderCodes> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Medical Genetics Provider Codes</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static MedicalGeneticsProviderCodes get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			MedicalGeneticsProviderCodes result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Medical Genetics Provider Codes</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static MedicalGeneticsProviderCodes getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			MedicalGeneticsProviderCodes result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Medical Genetics Provider Codes</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static MedicalGeneticsProviderCodes get(int value) {
		switch (value) {
			case _207S00000X_VALUE: return _207S00000X;
			case _207SG0202X_VALUE: return _207SG0202X;
			case _207SC0300X_VALUE: return _207SC0300X;
			case _207SG0201X_VALUE: return _207SG0201X;
			case _207SG0203X_VALUE: return _207SG0203X;
			case _207SM0001X_VALUE: return _207SM0001X;
			case _207SG0205X_VALUE: return _207SG0205X;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private MedicalGeneticsProviderCodes(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //MedicalGeneticsProviderCodes
